<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont icon-back">&#xe624;</div>
      </div>
    <div class="header-input">
      <span class="iconfont cheng-icon">&#xe632;输入城市经典</span>
      </div>
    <div class="header-right">
      <router-link to="city">
      {{this.$store.state.city}}<span class="iconfont arrow-icon">&#xe64a;</span></router-link>
      </div>
  </div>
</template>

<script>
  export default  {
    name : 'HomeHeader',
  }
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .header
    line-height:$headerHeight
    height:$headerHeight
    display:flex
    color:#fff
    background:$bgColor
    .header-left
      width:.64rem
      .icon-back
        text-align :center
        font-size :.4rem
    .header-input
      flex:1
      padding-left:.2rem
      font-size :.24rem
      line-height:.64rem
      height:.64rem
      margin-top:.1rem
      border-radius :.1rem
      background #fff
      color:#ccc
    .header-right
      color:#fff
      padding-left:.24rem
      width:1.24rem
      float:left
    .header-right a
      color:#fff
      .arrow-icon
        font-size:.24rem
</style>
